from urllib.parse import parse_qs, urlparse

path = "http://localhost/user?id=1&name=2&name=3"
query = urlparse(path).query
print(query)
params = parse_qs(query)
print(params)
